﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.SimpleFlow
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.SimpleFlow;

    public class map_ApprovalDataItem : EntityMapping<ApprovalDataItem>
    {
        public map_ApprovalDataItem()
        {
            Property(x => x.ItemTitle, map =>
            {
                map.Length(200);
            });

            //待办所属审批记录
            ManyToOne(x => x.Record, map =>
            {
                map.Column("RecordID");
            });

            Property(x => x.ItemPath, map =>
            {
                map.Length(200);
            });

            Property(x => x.ItemTarget, map =>
            {
                map.Length(200);
            });

            Property(x => x.ItemTitle, map =>
            {
                map.Length(200);
            });

            Property(x => x.ItemValue, map =>
            {
                map.Length(200);
            });
        }
    }
}
